package com.itheima.a07;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;

/**
 * @author: AirMan
 * @date: 2025/4/11 15:50
 * @description:
 */
@SpringBootApplication
public class MyA07 {
    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(MyA07.class, args);

        context.close();

    }

    @Bean(initMethod = "beanInit")
    public MyBean1 init(){
        return new MyBean1();
    }
}
